//
//  CreditServerHelper.h
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

typedef void(^SuccessBlock)(id response);
typedef void(^FailureBlock)(NSError * error);
typedef void(^ProgressBlock)(double pro);

typedef void (^VoidFailureBlock)(void);

@interface CreditServerHelper : NSObject

+ (void)logoutController;

+ (void)tokenLoseToLogoutController:(BOOL)isExpire;

+ (void)postCreditPhotoUrl:(NSString *)url params:(NSDictionary *)params imageData:(NSData *)imgData name:(NSString *)name fileName:(NSString *)fileName mimeType:(NSString *)mimeType withProgress:(ProgressBlock)progress success:(SuccessBlock)success failure:(FailureBlock)failure;

+ (void)uploadMaiDianDataStartTimeStr:(NSString *)startTime andEndTimeStr:(NSString *)endTime withTypeStr:(NSString *)typeStr withFirmly:(NSString *)firmly withSmaller:(NSString *)smaller;


@end
